package dbobjects;

import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 26.11.2008
 * Time: 14:56:09
 */
@DOTable(table = "db_object_param_value_type", pk = "id")
public class DBObjectParamValueType extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "type_name")
    private String name;
    @DOField(column = "type_table")
    private String table;

    public DBObjectParamValueType() {
        this.id = UNASSIGNEDINT;
        this.name = UNASSIGNEDSTRING;
        this.table = UNASSIGNEDSTRING;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public String toString() {
        return name;
    }
}
